import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('../views/index.vue'),
	children:[
		{
			path:'/first',
			name:'first',
			component:() => import('../views/first')
		},
		{
			path:'/sencond',
			name:'sencond',
			component:() => import('../views/sencond')
		},
		{
			path:'/three',
			name:'three',
			component:() => import('../views/three')
		},
	]
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
